﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS.Infrastructure.Dto.Request.Epaylinks
{
    /// <summary>
    /// 法人身份信息
    /// </summary>
    public class EpaylinksLawyerInfo
    {
        /// <summary>
        /// 证件类型，见证件类型，长度限制为 2
        /// </summary>
        [MaxLength(2)]
        public string LawyerCertType { get; set; }

        /// <summary>
        /// 证件号码，长度限制为 40
        /// </summary>
        [MaxLength(40)]
        public string LawyerCertNo { get; set; }

        /// <summary>
        /// 证件正面照，文件标识（fileID），限图片，参考附件上传，原件相片或复印件盖章（个体工商户或小微盖手印）
        /// </summary>
        public string LawyerCertPhotoFront { get; set; }
        public string LawyerCertPhotoFrontURL { get; set; }

        /// <summary>
        /// 证件背面照，文件标识（fileID），限图片，参考附件上传，原件相片或复印件盖章（个体工商户或小微盖手印）
        /// </summary>
        public string LawyerCertPhotoBack { get; set; }
        public string LawyerCertPhotoBackURL { get; set; }

        /// <summary>
        /// 证件人姓名，长度限制为 50
        /// </summary>
        [MaxLength(50)]
        public string CertificateName { get; set; }

        /// <summary>
        /// 证件效期(起始)，格式：yyyymmdd，长度限制为 10
        /// </summary>
        [MaxLength(10)]
        public string CertificateFrom { get; set; }

        /// <summary>
        /// 证件效期(截止)，格式：yyyymmdd，无限期填写“长期”，长度限制为 10
        /// </summary>
        [MaxLength(10)]
        public string CertificateTo { get; set; }

        /// <summary>
        /// 法人手机号码，长度限制为 15
        /// </summary>
        [MaxLength(15)]
        public string LegalPersonPhone { get; set; }

        /// <summary>
        /// 法人证件地址（国籍），参考附件国籍编码，默认 CHN（中国），长度限制为 10
        /// </summary>
        [MaxLength(10)]
        public string? LawyerCountry { get; set; }

        /// <summary>
        /// 法人证件详细地址，长度 10-80，acceptOrder=1 时必填，长度限制为 80
        /// </summary>
        [MaxLength(80)]
        public string? LawyerAddress { get; set; }
    }
}
